#pragma once

#include "ISimpleHashKey.h"
class CDependencyObject;

class CWeakRefHashKey :
	public ISimpleHashKey
{
private: 
	static void * operator new(size_t size);
public: 
	CWeakRefHashKey(CDependencyObject * pObject);
	CDependencyObject * GetTargetObject();
	virtual XUINT32 GetHash();
	virtual XINT32 EqualKeys(const struct ISimpleHashKey * pOther);
protected: 
	CDependencyObject * m_pTargetObject;
};

